﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
  <title>hProduct 1</title>

  <!-- This will be replace with one CSS file and one JavaScipt file -->
  <link rel="stylesheet" href="../css/uftestsuite.css" type="text/css" />
  <link rel="stylesheet" href="../../testrunner/css/testrunner.css" type="text/css" />

  <script type="text/javascript" src="../../testrunner/javascript/prototype-1.6.0.2.js"></script> 
  <script type="text/javascript" src="../../testrunner/javascript/beautify.js"></script> 
  <script type="text/javascript" src="../../testrunner/javascript/sumo/microformat.js"></script>
  <script type="application/javascript;version=1.7" src="http://svn.mozilla.org/labs/operator/chrome/operator/content/Microformats/Microformats.js"></script>
  <script type="text/javascript" src="../../testrunner/javascript/testrunner.js"></script>
</head>
<body>
  <p><a href="../"><img border="0" id="testsuite-image" alt="Microformats testsuite" src="../images/testsuite.gif" /></a><br /></p>

  <div class="test-fixture">
    <h1 class="summary">hProduct 1 - single occurrence test</h1>
    <p class="description">
      This page was design to test that values of a hProduct which are meant to have only a single occurrence are parsed correctly.
    </p>

    <p>From: <a href="default.htm"><span class="format">hProduct</span> test suite 0.3</a></p>

    <p class="author vcard">
      Author: <a class="url fn" href="http://georgebrock.com/">George Brocklehurst</a> 
    </p>

    <p>Tests:</p>
    <table id="assetTable" cellpadding="0" cellspacing="0">
      <thead>
        <tr>
          <th>Test</th>
          <th>Result</th>
          <th>Comment</th>
        </tr>
      </thead>
      <tbody>
        <tr class="assert">
          <td class="test">hproduct[0].fn</td>
          <td class="result">IsEqualTo("Samsung LE32B450")</td>
          <td class="comment">The fn (formatted name) is a singular value</td>
        </tr>
        <tr class="assert">
          <td class="test">hproduct[0].brand</td>
          <td class="result">HasProperty(true)</td>
          <td class="comment">The brand is a singular value</td>
        </tr>
        <tr class="assert">
          <td class="test">hproduct[0].price</td>
          <td class="result">IsEqualTo("&pound;305")</td>
          <td class="comment">The price is a singular value</td>
        </tr>
        <tr class="assert">
          <td class="test">hproduct[0].description</td>
          <td class="result">IsEqualTo("32 inch LCD HD ready television")</td>
          <td class="comment">The description is a singular value</td>
        </tr>
        <tr class="assert">
          <td class="test">hproduct[0].url</td>
          <td class="result">IsEqualTo("http://www.reevoo.com/p/samsung-le32b450")</td>
          <td class="comment">The url is a singular value</td>
        </tr>
      </tbody>
    </table> 

    <p>History:</p>
    <ul>
      <li class="history vevent">
        <span class="summary">Created</span>: <abbr class="dtstart" title="2010-03-04">4 March 2010</abbr> 
        <span class="description">by George Brocklehurst</span>
      </li>
    </ul>
  </div>

  <div id="uf">
    <div class="hproduct">
      <!-- This may not be the best semantic use of HTML element -->
      <div class="fn">Samsung LE32B450</div>
      <div>Brand: <span class="brand vcard"><span class="fn org">Samsung</span></span></div>
      <div>Price: <span class="price">&pound;305</span></div>
      <div>Description: <span class="description">32 inch LCD HD ready television</span></div>
      <div>URL: <a class="url" href="http://www.reevoo.com/p/samsung-le32b450">Reevoo.com product page</a></div>
    </div>
  </div>

  <p><a rel="license" href="../license.txt">Some rights reserved</a></p>

</body>

</html>
